package com.metasoft.flex.dto {
	
	import com.metasoft.flex.dto.XMLInfo;
	import com.metasoft.flex.dto.BioGraphicInfo;
	
	public class UserInfo 
	implements XMLInfo {
		
		public var biographicInfo:BioGraphicInfo;
		
		public function set BioGraphicInfomation(bgInfo:BioGraphicInfo):void {
			this.biographicInfo = new BioGraphicInfo();
			this.biographicInfo = bgInfo;
		}
		
		/**
		 * Converts this object to XML String.
		 */
		public function toXMLString():String {
			var uInfo:String = new String(); 
			
			if (biographicInfo != null) {
				
				uInfo = uInfo.concat("<urn2:UserInformationTable><urn2:UserInformation>");
				if (biographicInfo != null) {
					uInfo = uInfo.concat(biographicInfo.toXMLString());
				}
				uInfo = uInfo.concat("</urn2:UserInformation></urn2:UserInformationTable>");				
			}
			return uInfo;
		}	
	}
}